package org.zhaolei.service;

import org.zhaolei.model.OrderMessage;
import org.zhaolei.request.ConfirmOrderRequest;
import org.zhaolei.util.JsonData;

public interface ProductOrderService {

    /**
     * 确认订单
     * @param confirmOrderRequest
     * @return
     */
    JsonData confirmOrder(ConfirmOrderRequest confirmOrderRequest);

    /**
     * 查询订单状态
     * @param outTradeNo
     * @return
     */
    String queryProductOrderState(String outTradeNo);

    /**
     * 队列监听，定时关单
     * @param orderMessage
     * @return
     */
    boolean closeProductOrder(OrderMessage orderMessage);
}
